<div class="body-top">
	<div id="body-navigation">
		<div id="navcontainer-body">
			<ul class="navlist-body">
				<li><a href="./hallofcool.php">Hall of Cool Home</a></li>
				<li class="active"><a href="./fedimport.php">Federation Import</a></li>
				<li><a href="./leagueimport.php">League Import</a></li>
			</ul>
		</div>
	</div>
	
	<div class="hoc-form">{$introduction}</div>
	
{if $loggedIn == true}
	<div class="hoc-form">
		<form action="{$action}" method="post" name="fetch">
		<div class="fed-title">Federation:</div>
			<select name="select_alliances" class="fed-box" onchange="showAllianceInput(this.value)">
				<option value="0">Enter AllianceID manually...</option>
				{foreach from=$alliances item=alliance name=alliances_loop}
					<option value="{$alliance->getAllianceID()}" {if $alliance->getAllianceID() == $selected_alliance}selected="selected"{/if}>{$alliance->getName()} ({$alliance->getAllianceID()})</option>
				{/foreach}
			</select>
		{include file="hoc/input_alliance.tpl" display_input=$display_input selected_alliance=$selected_alliance}
     	<input name="hidden" type="hidden" value="fetch"></input>
    	<input type="submit" class="fetch" value="Fetch" alt="Fetch"></input>
    	</form>
    </div>
    {if $error !== null}
		<div class="error-message"><p>{$error}</p></div>
	{/if}
	{if $info !== null}
		<div class="info-message"><p>{$info}</p></div>
	{/if}

{else}
	<div class="info-message"><p>Login with your Hattrick username and security code above to import/update a federation!</p></div>
{/if}
</div>